package com.lms.demo.fileservice.mapper;

import com.lms.demo.fileservice.model.FileInfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @Author: 李孟帅
 * @CreateTime: 2020-12-24 11:46
 * @Description:
 */
@Mapper
@Repository
public interface FileInfoMapper {

    /**
    * @Author 李孟帅
    * @Date 2020/12/24 19:19
    * @Description  插入一条文件信息
    */
    @Insert({"INSERT INTO file_info(file_id,filename,size) VALUES(#{fileId},#{filename},#{size})"})
    int insert(FileInfo fileInfo);
}
